package io.jee.caisan.weixin.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 微信调用素材次数
 * 
 * @author xiexx
 *
 */
@Entity
@DynamicUpdate
public class MpMaterialNum {

	private Integer id;
	private Integer longMaterialNum;// 获取永久素材次数
	private Integer listLongMaterialNum;// 获取永久素材列表次数
	private Integer materialCountNum;// 获取素材总数次数
	private Date time;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getLongMaterialNum() {
		return longMaterialNum;
	}

	public void setLongMaterialNum(Integer longMaterialNum) {
		this.longMaterialNum = longMaterialNum;
	}

	public Integer getListLongMaterialNum() {
		return listLongMaterialNum;
	}

	public void setListLongMaterialNum(Integer listLongMaterialNum) {
		this.listLongMaterialNum = listLongMaterialNum;
	}

	public Integer getMaterialCountNum() {
		return materialCountNum;
	}

	public void setMaterialCountNum(Integer materialCountNum) {
		this.materialCountNum = materialCountNum;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
	
}
